<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


	if (sizeof($pages) > 0) {
		if ($paging) echo $paging."<br class='cc' />";
		foreach ($pages as $page) {
			echo "<div class='one-item'>";
				echo "<h2><a href='/".$url."/".$page['news_id']."/'>".$page['news_title']."</a></h2>";
				echo "<small>" . showmedate($page['news_date']) . "</small>";
				if ($page['news_image'] != "") {
					echo "<a href='/uploads/news/".$page['news_id']."/".$page['news_image']."'><img src='/uploads/news/".$page['news_id']."/small/".$page['news_image']."' alt='".$page['news_title']."' title='".$page['news_title']."' class='ph fl' /></a>";
				}
				echo htmlspecialchars_decode($page['news_desc']);
				echo "<a class='fr' href='/".$url."/".$page['news_id']."/'>Читать далее...</a>";
				echo "<br class='cc'/>";
			echo "</div>";
		}
		if ($paging) echo $paging;
	} else {
		echo showmenotice('Список пуст');
	}

?>